home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Development Tools & Languages / Dialogs / MDialogs.cp < prev    next >
Encoding:
Text File  |  1995-02-06  |  1.2 KB  |  57 lines  |  [TEXT/MPS ]

  1. // Copyright © 1991 Apple Computer, Inc. All rights reserved.
  2.  
  3. #ifndef __UDIALOGS__
  4. #include <UDialogs.h>
  5. #endif
  6.  
  7. #ifndef __MACAPP__
  8. #include <MacApp.h>
  9. #endif
  10.  
  11. #ifndef __UPRINTING__
  12. #include <UPrinting.h>
  13. #endif
  14.  
  15. #ifndef __UGRIDVIEW__
  16. #include <UGridView.h>
  17. #endif
  18.  
  19. #ifndef __UTEVIEW__
  20. #include <UTEView.h>
  21. #endif
  22.  
  23. #ifndef __UDIALOG__
  24. #include <UDialog.h>
  25. #endif
  26.  
  27. #ifndef __UGEOMETRY__
  28. #include <UGeometry.h>
  29. #endif
  30.  
  31. //----------------------------------------------------------------------------------------
  32. // main: 
  33. //----------------------------------------------------------------------------------------
  34. #pragma push
  35. #pragma processor 68000
  36.  
  37. void main()
  38. {    
  39.  
  40.    TDialogsApplication    *gDialogsApplication;
  41.  
  42.     InitToolBox();                                                    //    essential toolbox and utilities
  43.     if (ValidateConfiguration(gConfiguration)){            //    make sure we can run
  44.         InitUMacApp(8);                                             //    8 calls to MoreMasters
  45.         InitUTEView();                                                
  46.         InitUDialog();                                                
  47.  
  48.         gDialogsApplication = new TDialogsApplication;    //    create an application object
  49.         gDialogsApplication->IDialogsApplication();        //    initialize the application
  50.         gDialogsApplication->Run();                            //    run the application
  51.     }
  52.     else
  53.         StdAlert(phUnsupportedConfiguration);                //    tell user we can't run
  54. }
  55.  
  56. #pragma pop
  57.